/**
 * Project Name:JavaBaseReview
 * Package Name:com.xuwei.base.tree
 * author:David
 * Date:2016年5月9日下午12:59:45
 * Copyright (c) 2016, xw123box@126.com All Rights Reserved.
 *
 */
package com.xuwei.base.link;

/**
 * 单链表结点定义
 * @author David
 * @since 2016年5月9日 下午12:59:45
 * @version 
 * @since JDK 1.6
 */
public class SLNode implements Node {
	private Object element;
	private SLNode next;
	
	public SLNode() {
		this(null,null);
	}

	public SLNode(Object ele, SLNode next) {
		this.element = ele;
		this.next = next;	
	}

	
	
	public SLNode getNext() {
		return next;
	}

	public void setNext(SLNode next) {
		this.next = next;
	}

	@Override
	public Object getData() {
		return element;
	}

	@Override
	public void setData(Object obj) {
		this.element = obj;
	}

}
